import request from '@/request/index.js'
import {C2B} from '@/utils/wordtransfer.js'

// 查询菜单的信息
export const LoadTreeData = () => {
   return request.post("/sys/roleapis/apis",{})
}

// 授权信息
export const saveRoleApiss = (roleId,apiIds) => {
   return request.post(`/sys/roleapis/saveRoleApiss?roleId=${roleId}&apiIds=${apiIds}`,{})
}

// 查询角色授权的菜单信息
export const SelectRoleApis = (roleId) => {
   return request.post(`/sys/roleapis/roleapis/${roleId}`,{})
}
